
class Usesr {
  var errcode;
  var errmsg;
  Data? data;
  var message;

  Usesr({this.errcode, this.errmsg, this.data, this.message});

  Usesr.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    message = json['message'];
  }

}

class Data {
  var locationCompanyId;
  var locationCompanyIdName;
  var accountType;
  var accessToken;
  var login;
  var name;
  var login_mobile;
  var lang;
  var tz;
  var expiresIn;
  var uid;
  var partnerId;
  var companyId;
  var companyIdName;
  List<int>? companyIds;
  var companyIdsName;
  var image128;
  var db;
  var isConfirm;
  var jobUserId;
  var jobCompanyId;
  var dtcloud_login_url;
  var icon;

  Data(
      {this.locationCompanyId,
        this.locationCompanyIdName,
        this.accountType,
        this.accessToken,
        this.login,
        this.name,
        this.lang,
        this.tz,
        this.expiresIn,
        this.uid,
        this.partnerId,
        this.companyId,
        this.companyIdName,
        this.companyIds,
        this.companyIdsName,
        this.image128,
        this.db,
        this.isConfirm,
        this.jobUserId,
        this.dtcloud_login_url,
        this.icon,
        this.jobCompanyId});

  Data.fromJson(Map<String, dynamic> json) {
    locationCompanyId = json['location_company_id'];
    locationCompanyIdName = json['location_company_id_name'];
    accountType = json['account_type'];
    accessToken = json['access_token'];
    login = json['login'];
    name = json['name'];
    lang = json['lang'];
    tz = json['tz'];
    expiresIn = json['expires_in'];
    uid = json['uid'];
    partnerId = json['partner_id'];
    companyId = json['company_id'];
    companyIdName = json['company_id_name'];
    companyIds = json['company_ids'].cast<int>();
    companyIdsName = json['company_ids_name'];
    image128 = json['image_128'];
    db = json['db'];
    isConfirm = json['is_confirm'];
    jobUserId = json['job_user_id'];
    login_mobile = json['login_mobile'];
    dtcloud_login_url = json['dtcloud_login_url'];
    icon = json['icon'];
    jobCompanyId = json['job_company_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['location_company_id'] = this.locationCompanyId;
    data['location_company_id_name'] = this.locationCompanyIdName;
    data['account_type'] = this.accountType;
    data['access_token'] = this.accessToken;
    data['login'] = this.login;
    data['name'] = this.name;
    data['lang'] = this.lang;
    data['tz'] = this.tz;
    data['expires_in'] = this.expiresIn;
    data['uid'] = this.uid;
    data['partner_id'] = this.partnerId;
    data['company_id'] = this.companyId;
    data['company_id_name'] = this.companyIdName;
    data['company_ids'] = this.companyIds;
    data['company_ids_name'] = this.companyIdsName;
    data['image_128'] = this.image128;
    data['db'] = this.db;
    data['is_confirm'] = this.isConfirm;
    data['job_user_id'] = this.jobUserId;
    data['job_company_id'] = this.jobCompanyId;
    return data;
  }
}